CREATE TABLE [dbo].[TMDOCU_CLIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_CLIE] [dbo].[TD_VC_020] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMDOCU_CL__NU_PR__1BD30ED5] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMDOCU_CL__CO_US__1CC7330E] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMDOCU_CL__FE_US__1DBB5747] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMDOCU_CL__CO_US__1EAF7B80] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMDOCU_CL__FE_US__1FA39FB9] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMDOCU_CLIN] ADD CONSTRAINT [PK__TMDOCU_C__380D47244440F2E2] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_TIPO_DOCU], [NU_DOCU_CLIE], [CO_CLIE], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMDOCU_CLIN] ADD CONSTRAINT [FK__TMDOCU_CLIN__7BB1235D] FOREIGN KEY ([CO_EMPR], [CO_CLIE], [CO_TIPO_DOCU], [NU_DOCU_CLIE]) REFERENCES [dbo].[TMDOCU_CLIE] ([CO_EMPR], [CO_CLIE], [CO_TIPO_DOCU], [NU_DOCU_CLIE])
GO
